<?php

declare(strict_types=1);

namespace App\Overwrites;

use Mine\Annotation\DependProxy;
use Throwable;

#[DependProxy(values: [ \Mine\Helper\Ip2region::class ])]
class Ip2region extends \Mine\Helper\Ip2region
{
    public function search(string $ip): string
    {
        try {
            return parent::search($ip);
        } catch (Throwable $e) {
            return '';
        }
    }
}
